package edu.nakan.fibonaccinumber;

/**
 * @author NakanPhung
 * @date: 7/19/2013
 * @email: cank56hua@gmail.com
 * @project: HomeWorkDay2Problem3
 **/

public class FibonacciNumber {

	private static int[] Fibonaci(int n) {
		int[] array = new int[n];

		array[0] = array[1] = 1;

		for (int i = 2; i < n; ++i) {
			array[i] = array[i - 1] + array[i - 2];
		}
		return array;
	}

	public static void main(String[] args) {
		for (int element : Fibonaci(10)) {
			System.out.print(element + "   ");
		}
	}

}
